<template>
  <div id="basic-layout">
    <a-layout>
      <a-layout-header class="header">
        <GlobalHeader></GlobalHeader>
      </a-layout-header>
      <a-layout-content class="content">
        <router-view />
      </a-layout-content>
      <a-layout-footer class="layout-footer"> Footer </a-layout-footer>
    </a-layout>
  </div>
</template>

<script setup lang="ts">
import GlobalHeader from "@/components/GlobalHeader.vue";
import { userRegister } from "@/api/user";

// 提供必要的参数
const registerParams = {
  username: "john_doe",
  password: "securepassword123",
  email: "john.doe@example.com",
};

userRegister(registerParams).then((res) => {
  console.log(res); // 打印响应对象
});
</script>

<style scoped>
#basic-layout :deep(.layout-footer) {
  background-color: #dcdcdc;
  text-align: center;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  font-size: 20px;
}
#basic-layout :deep(.content) {
  padding: 20px;
  margin-bottom: 20px;
  background: linear-gradient(to right, #ffffff, #ffffff);
}
#basic-layout :deep(.header) {
  background: white;
  margin-bottom: 20px;
}
</style>
